-
Notifications
You must be signed in to change notification settings - Fork 0
File jump in jar #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File jump in jar #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements jump-to-DAO and SQL‑file functionality for both binary and source JARs, enabling gutter icons and jump actions in the IDE. Key changes include updating the DAO method lookup in SqlLineMakerProvider and PsiDaoMethod to handle JAR-contained files, enhancing DAO resolution in DaoMethodUtil for both module and JAR sources, and adding new utilities for JAR file search and file type checks.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/kotlin/org/domaframework/doma/intellij/gutter/sql/SqlLineMakerProvider.kt | Updates the method call to include the DAO file context when looking up DAO methods. |
| src/main/kotlin/org/domaframework/doma/intellij/extension/expr/SqlElExtensions.kt | Removes an unused import. |
| src/main/kotlin/org/domaframework/doma/intellij/common/psi/PsiDaoMethod.kt | Enhances daoFile resolution and adds jar path handling for SQL file path determination. |
| src/main/kotlin/org/domaframework/doma/intellij/common/dao/DaoMethodUtil.kt | Refactors findDaoMethod to accept an optional DAO file and introduces getDaoClassName for class name extraction. |
| src/main/kotlin/org/domaframework/doma/intellij/common/JarFileSearch.kt | Introduces utility functions to locate the JAR root and resolve file paths within JARs. |
| src/main/kotlin/org/domaframework/doma/intellij/common/FileTypeCheck.kt | Adds support for “CLASS” file types in both the file extension mapping and file type checks. |
Comments suppressed due to low confidence (1)
src/main/kotlin/org/domaframework/doma/intellij/common/dao/DaoMethodUtil.kt:115
- [nitpick] Consider defining a constant for the literal "dao/" used in getDaoClassName to make the directory structure assumption explicit and improve maintainability.
private fun getDaoClassName(
Added jump-to-DAO and SQL‑file functionality within JARs.
Enabled gutter icons and jump actions in both the binary JAR and its corresponding source JAR.
(The source JAR must be linked to the binary JAR.)